<template>
	<view :style="themeColor">
		<view class="page">
			<view class="flex flex-wrap align-center justify-between benben-position-layout flex myhb_flex_0"
				:style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
				<view class='flex flex-wrap align-center myhb_fd0_0'>
				</view>
				<text class='myhb_fd0_1'>我的</text>
				<view class='flex flex-wrap align-center justify-end myhb_fd0_0'>
				</view>

			</view>
			<view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
			<!---flex布局flex布局开始-->
			<view class="flex justify-between align-center myhb_flex_1" @tap.stop="handleJumpDiy" data-type="navigateTo" :data-url="`/pages/wd/myInfo/myInfo`">
				<!-- <view class='flex flex-wrap align-center myhb_fd1_0' @tap.stop="handleJumpDiy" data-type="navigateTo"
					:data-url="`/pages/wd/myInfo/myInfo`" v-if="isLogin===false">
					<image class='myhb_fd1_0_c0' mode="aspectFill" :src='STATIC_URL+"219.png"' v-if="isLogin===false">
					</image>
					<text class='myhb_fd1_0_c1'>请登录</text>
				</view> -->
				<view class='flex flex-wrap align-center myhb_fd1_0'>
					<image class='myhb_fd1_0_c0' mode="aspectFill" :src='user.avatar'>
					</image>
					<view class='myhb_fd1_0_c1'>{{user.nickname}}</view>
				</view>
				<image style="width: 14rpx;height: 26rpx;" mode="aspectFill" :src='STATIC_URL+"32.png"'>
				</image>
			</view>

			<!---flex布局flex布局结束-->
			<!---flex布局flex布局开始-->
			<view class="flex flex-direction flex-wrap align-stretch benben-flex-layout myhb_flex_2" v-if="ground_status == 0">
				<view class='flex flex-direction flex-wrap align-stretch myhb_fd2_0'>
					<view class='flex flex-wrap align-center justify-between'>
						<text class='myhb_fd2_0_c0_c0'>我的订单</text>
					</view>
					<view class='flex flex-wrap align-center  myhb_fd2_0_c1'>
						<view class='flex flex-direction flex-wrap align-center myhb_fd2_0_c1_c0'
							@tap.stop="handleJumpDiy" data-type="navigateTo"
							:data-url="`/pages/ddgl/order/order?current=1`">
							<benben-message-num class='myhb_fd2_0_c1_c0_c0' :message-num="dataNum.no_pay" size='24' color='#fff' background-color='red'>
							</benben-message-num>
							<image class='myhb_fd2_0_c1_c0_c1' mode="aspectFill" :src='STATIC_URL+"494.png"'></image>
							<text class='myhb_fd2_0_c1_c0_c2'>待付款</text>
						</view>
						<view class='flex flex-direction flex-wrap align-center myhb_fd2_0_c1_c0'
							@tap.stop="handleJumpDiy" data-type="navigateTo"
							:data-url="`/pages/ddgl/order/order?current=2`">
							<image class='myhb_fd2_0_c1_c1_c0' mode="aspectFill" :src='STATIC_URL+"495.png"'></image>
							<text class='myhb_fd2_0_c1_c0_c2'>已付款</text>
							<benben-message-num class='myhb_fd2_0_c1_c1_c2' :message-num="dataNum.deliver" size='24'
								color='#fff' background-color='red'>
							</benben-message-num>
						</view>
						<view class='flex flex-direction flex-wrap align-center myhb_fd2_0_c1_c0'
							@tap.stop="handleJumpDiy" data-type="navigateTo"
							:data-url="`/pages/ddgl/order/order?current=3`">
							<image class='myhb_fd2_0_c1_c1_c0' mode="aspectFill" :src='STATIC_URL+"496.png"'></image>
							<text class='myhb_fd2_0_c1_c0_c2'>已取消</text>
							<benben-message-num class='myhb_fd2_0_c1_c1_c2' :message-num="dataNum.receiv" size='24'
								color='#fff' background-color='red'>
							</benben-message-num>
						</view>
						<view class="center_img">
							<image :src='STATIC_URL+"4.png"' mode="aspectFill"></image>
						</view>
						<view class='flex flex-direction flex-wrap align-center myhb_fd2_0_c1_c0'
							@tap.stop="handleJumpDiy" data-type="navigateTo"
							:data-url="`/pages/ddgl/order/order?current=0`">
							<image class='myhb_fd2_0_c1_c1_c0' mode="aspectFill" :src='STATIC_URL+"497.png"'></image>
							<text class='myhb_fd2_0_c1_c0_c2'>全部订单</text>
							<benben-message-num class='myhb_fd2_0_c1_c3_c2' :message-num="dataNum.refund" size='24'
								color='#fff' background-color='red'>
							</benben-message-num>
						</view>
					</view>
				</view>
			</view>
			<view style="height: 32rpx;" v-if="ground_status == 1"></view>

			<!---flex布局flex布局结束-->
			<!---flex布局flex布局开始-->
			<view class="flex benben-flex-layout flex-wrap align-center myhb_flex_3">
				<view class='flex flex-direction flex-wrap align-stretch flex-sub myhb_fd3_0'>
					<view class='flex flex-direction flex-wrap align-stretch flex-sub myhb_fd3_0_c0'>
						<view class='flex flex-wrap align-center' @tap.stop="handleJumpDiy" data-type="navigateTo" :data-url="`/pages/wd/promotionTeam/promotionTeam`" v-if="ground_status == 0">
							<image class='myhb_fd3_0_c0_c0_c0' mode="aspectFit" :src='STATIC_URL+"498.png"'></image>
							<view class='flex flex-wrap align-center justify-between flex-sub myhb_fd3_0_c0_c0_c1'>
								<view class='flex flex-wrap align-center'>
									<text class='myhb_fd3_0_c0_c0_c1_c0_c0'>兼职代理</text>
									<text class='myhb_fd3_0_c0_c0_c1_c0_c1'
										:style="{'transform':`translateY(-10rpx)`}">推荐</text>
								</view>
								<image class='myhb_fd3_0_c0_c0_c1_c1' mode="aspectFit" :src='STATIC_URL+"466.png"'>
								</image>
							</view>
						</view>
						<view class='flex flex-wrap align-center' @tap.stop="handleJumpDiy" data-type="navigateTo"
							:data-url="`/pages/wd/friendsLnvite/friendsLnvite`">
							<image class='myhb_fd3_0_c0_c0_c0' mode="aspectFit" :src='STATIC_URL+"499.png"'></image>
							<view class='flex flex-wrap align-center justify-between flex-sub myhb_fd3_0_c0_c0_c1'>
								<view class='flex flex-wrap align-center'>
									<text class='myhb_fd3_0_c0_c0_c1_c0_c0'>邀请好友</text>
									<text class='myhb_fd3_0_c0_c0_c1_c0_c1'
										:style="{'transform':`translateY(-10rpx)`}">推荐</text>
								</view>
								<image class='myhb_fd3_0_c0_c0_c1_c1' mode="aspectFit" :src='STATIC_URL+"466.png"'>
								</image>
							</view>
						</view>
						<view class='flex flex-wrap align-center' @tap.stop="handleJumpDiy" data-type="navigateTo"
							:data-url="`/pages/wd/kefu/kefu`">
							<image class='myhb_fd3_0_c0_c0_c0' mode="aspectFit" :src='STATIC_URL+"500.png"'></image>
							<view class='flex flex-wrap align-center justify-between flex-sub myhb_fd3_0_c0_c0_c1'>
								<text class='myhb_fd3_0_c0_c0_c1_c0_c0'>在线客服</text>
								<image class='myhb_fd3_0_c0_c0_c1_c1' mode="aspectFit" :src='STATIC_URL+"466.png"'>
								</image>
							</view>
						</view>
						<view class='flex flex-wrap align-center' @tap.stop="handleJumpDiy" data-type="navigateTo"
							:data-url="`/pages/xtsz/feedBack/feedBack`">
							<image class='myhb_fd3_0_c0_c0_c0' mode="aspectFit" :src='STATIC_URL+"501.png"'></image>
							<view class='flex flex-wrap align-center justify-between flex-sub myhb_fd3_0_c0_c0_c1'>
								<text class='myhb_fd3_0_c0_c0_c1_c0_c0'>意见反馈</text>
								<image class='myhb_fd3_0_c0_c0_c1_c1' mode="aspectFit" :src='STATIC_URL+"466.png"'>
								</image>
							</view>
						</view>
						<view class='flex flex-wrap align-center' @tap.stop="handleJumpDiy" data-type="navigateTo"
							:data-url="`/pages/xtsz/system/system`">
							<image class='myhb_fd3_0_c0_c0_c0' mode="aspectFit" :src='STATIC_URL+"502.png"'></image>
							<view class='flex flex-wrap align-center justify-between flex-sub myhb_fd3_0_c0_c4_c1'>
								<text class='myhb_fd3_0_c0_c0_c1_c0_c0'>设置</text>
								<image class='myhb_fd3_0_c0_c0_c1_c1' mode="aspectFit" :src='STATIC_URL+"466.png"'>
								</image>
							</view>
						</view>
					</view>
				</view>
			</view>

			<!---flex布局flex布局结束-->
			<!---flex布局flex布局开始-->
			<view class="flex benben-flex-layout flex-wrap align-center myhb_flex_4">
			</view>

			<!---flex布局flex布局结束-->
			<!---flex布局flex布局开始-->
			<view class="flex benben-flex-layout flex-wrap align-center">
			</view>

			<!---flex布局flex布局结束-->


		</view>
	</view>
</template>
<script>
	export default {
		components: {},

		data() {
			return {
				dataNum: {},
				user: {},
				ground_status: 1
			};
		},
		computed: {
			themeColor() {
				return this.$store.getters.themeColor
			},
		},
		watch: {},
		onLoad(options) {
			if (uni.getSystemInfoSync().platform == 'ios') {
				this.getGroundStatus();
			} else {
				this.ground_status = 0;
			}
		},
		onUnload() {

		},
		onReady() {

		},
		onShow() {
			if (global.token) {
				this.isLogin = true;
				this.getUser();
			} else {
				this.isLogin = false;
			}
		},
		onHide() {

		},
		onResize() {

		},
		onPullDownRefresh() {

		},
		onReachBottom(e) {

		},
		onPageScroll(e) {

		},
		methods: {
			getGroundStatus() {
				this.$api.post(global.apiUrls.publicUpdateAPP, {
					
				}).then(res => {
					if (res.data.code == 1) {
						this.ground_status = res.data.data.app_grounding_status;
					}
				})
			},
			getUser() {
				this.$api.post(global.apiUrls.post5c78c4772da97, {
					
				}).then(res => {
					// console.log(res);
					if (res.data.code == 1) {
						this.user = res.data.data;
					} else {
						this.$message.info(res.data.msg);
					}
				})
			},
		}
	};
</script>
<style lang="scss" scoped>
	.center_img {
		width: 43rpx;
		height: 132rpx;
		image {
			width: 100%;
			height: 100%;
		}
	}
	.page {
		width: 100vw;
		overflow-x: hidden;
		min-height: calc(100vh - var(--window-bottom));
		background: url(image-path('493.png')) no-repeat;
		background-size: 100% auto;
	}

	.myhb_flex_0 {
		width: 750rpx;
		height: 88rpx;
		overflow: hidden;
		z-index: 10;
		top: 0rpx;
	}

	.myhb_fd0_1 {
		color: var(--benbenFontColor3);
		font-size: 36rpx;
		font-weight: 700;
		line-height: 50rpx;
	}

	.myhb_fd0_0 {
		width: 200rpx;
		height: 88rpx;
	}

	.myhb_flex_1 {
		padding: 36rpx 32rpx 0rpx 32rpx;
	}

	.myhb_fd1_0_c1 {
		color: var(--benbenFontColor3);
		font-size: 40rpx;
		font-weight: 700;
		line-height: 56rpx;
		max-width: 400rpx;
		display:-webkit-box;
		overflow:hidden;
		text-overflow:ellipsis;
		-webkit-line-clamp:1;
		-webkit-box-orient:vertical;
	}

	.myhb_fd1_0_c0 {
		width: 124rpx;
		height: 124rpx;
		border-radius: 67rpx 67rpx 67rpx 67rpx;
		margin: 0rpx 32rpx 0rpx 0rpx;
	}

	.myhb_fd1_0 {
		// margin: 40rpx 0rpx 0rpx 0rpx;
	}

	.myhb_flex_2 {
		padding: 0rpx 32rpx 0rpx 32rpx;
		margin-top: 42rpx;
	}

	.myhb_fd2_0_c1_c3_c2 {
		position: absolute;
		top: -20rpx;
		right: 10rpx;
	}

	.myhb_fd2_0_c1_c1_c2 {
		position: absolute;
		top: -20rpx;
		right: -2rpx;
	}

	.myhb_fd2_0_c1_c1_c0 {
		width: 64rpx;
		height: 64rpx;
		border-radius: 0rpx 0rpx 0rpx 0rpx;
	}

	.myhb_fd2_0_c1_c0_c2 {
		color: var(--benbenFontColor0);
		font-size: 26rpx;
		font-weight: 400;
		line-height: 33rpx;
		margin: 16rpx 0rpx 0rpx 0rpx;
	}

	.myhb_fd2_0_c1_c0_c1 {
		width: 56rpx;
		height: 66rpx;
		border-radius: 0rpx 0rpx 0rpx 0rpx;
	}

	.myhb_fd2_0_c1_c0_c0 {
		position: absolute;
		top: -20rpx;
		right: -2rpx;
		z-index: 1;
	}

	.myhb_fd2_0_c1_c0 {
		position: relative;
		padding: 0 30rpx;
	}

	.myhb_fd2_0_c1 {
		margin: 40rpx 0rpx 0rpx 0rpx;
	}

	.myhb_fd2_0_c0_c0 {
		color: var(--benbenFontColor0);
		font-size: 32rpx;
		font-weight: 700;
		line-height: 40rpx;
	}

	.myhb_fd2_0 {
		background: #FFFFFF;
		border-radius: 16rpx 16rpx 16rpx 16rpx;
		padding: 32rpx 32rpx 32rpx 32rpx;
		margin: 20rpx 0rpx 0rpx 0rpx;
	}

	.myhb_flex_3 {
		background: #eee;
		background-size: 100% auto !important;
		border-radius: 32rpx 32rpx 0rpx 0rpx;
	}

	.myhb_fd3_0_c0_c4_c1 {
		padding: 32rpx 0rpx 32rpx 0rpx;
	}

	.myhb_fd3_0_c0_c0_c1_c1 {
		width: 14rpx;
		height: 26rpx;
		border-radius: 0rpx 0rpx 0rpx 0rpx;
	}

	.myhb_fd3_0_c0_c0_c1_c0_c1 {
		background: var(--benbenbgColor0);
		background-size: 100% auto;
		font-size: 22rpx;
		color: #FFFFFF;
		font-weight: 500;
		padding: 3rpx 11rpx 3rpx 11rpx;
		border-radius: 40rpx 40rpx 40rpx 0rpx;
	}

	.myhb_fd3_0_c0_c0_c1_c0_c0 {
		margin: 0rpx 16rpx 0rpx 16rpx;
		color: #333333;
		font-size: 32rpx;
		font-weight: 500;
	}

	.myhb_fd3_0_c0_c0_c1 {
		border-bottom: 1px solid #eee;
		padding: 32rpx 0rpx 32rpx 0rpx;
	}

	.myhb_fd3_0_c0_c0_c0 {
		width: 48rpx;
		height: 48rpx;
		border-radius: 0rpx 0rpx 0rpx 0rpx;
	}

	.myhb_fd3_0_c0 {
		background: #fff;
		margin: 24rpx 0rpx 24rpx 0rpx;
		border-radius: 16rpx 16rpx 16rpx 16rpx;
		background-size: 100% auto !important;
		padding: 0rpx 24rpx 0rpx 24rpx;
	}

	.myhb_fd3_0 {
		background: rgba(248, 248, 250, 1);
		border-radius: 32rpx 32rpx 0rpx 0rpx;
		padding: 0rpx 32rpx 0rpx 32rpx;
		background-size: 100% auto !important;
	}

	.myhb_flex_4 {
		padding: 0rpx 32rpx 0rpx 32rpx;
	}
</style>